<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!-- 小包客户价格类型所含渠道  -->
<script>	
function changeFlag(th,pkid){
	//alert(th.value+":"+th.name+":"+pkid);
	var bp = '<%=basePath%>/updateKindClacFlag';
	$.post(bp,{"kindCFlag":th.value,"channelNumber":th.name,"airMailPriceKindId":pkid},function(msg){
		alertMsg.correct("提交成功！");
	});
}
</script>

<div class="pageHeader">
</div>
<div class="pageContent">
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th>序号</th><th>所属分类</th><th>渠道编码</th><th>渠道名称</th><th>渠道别名</th><th>挂号费</th>
				<th>计算方式</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="airMailPriceKindChannel" var="cha" status="idx">
				<tr>
					<td><s:property value="#idx.count"/></td>
					<td><s:property value="#cha[1]"/></td><!-- 所属价格分类 -->
					<td><s:property value="#cha[0]"/></td>
					<td><s:property value="#cha[5]"/></td><!-- 渠道名称 -->
					<td><s:property value="#cha[6]" /></td><!-- 渠道别名 -->
					<td><s:property value="#cha[16]"/></td>
					<td>
						<s:radio name="%{#cha[0]}" list="%{#{'1':'折扣','0':'系数'}}" value="#cha[3]" theme="simple" onclick="changeFlag(this,%{airMailPriceKindId});" ></s:radio> <!-- 采用折扣还是系数 -->
					</td>
					<td>
						<a mask="true" href="<%=basePath%>findAirMailChannelModulus?channelNumber=<s:property value="#cha[0]"/>&airMailPriceKindId=<s:property value="airMailPriceKindId"/>" target="dialog"
						  rel="airMailPriceKindModulusPage" 
						  width="900" height="480"						
						  style="color: red;">设置该渠道系数或折扣</a>
					</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
</div>
